# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


# Create your models here.
class MockData(models.Model):
    enable = models.BooleanField("启用状态", default=True)
    project_name = models.CharField('项目名称', max_length=256, default='untitled')
    route = models.CharField('请求地址', max_length=1024)
    return_data = models.TextField('返回数据', default='{}')
    kinds = (
        ('g', 'GET'),
        ('p', 'POST'),
    )
    kind = models.CharField('请求类型', max_length=64, choices=kinds, default='g')

    def __str__(self):
        return self.route
